# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
class Animal(object):
    def eat(self):
        print('动物吃东西')

class Cat(Animal):
    def eat(self):
        print('猫吃鱼')

class Tiger(Animal):
    def eat(self):
        print('老虎吃肉')

class Person(object):
    def eat(self):
        print('人吃五谷杂粮')
#创建了一个函数
def fun(an):              #并且这边传递的形参可以随便设置
    an.eat()
#开启调用函数
fun(Tiger())
fun(Cat())
fun(Person())
